package org.lex.dbq.model.bo;

public class Session extends CommonObject {
	private String url = "";
	private DriverConfig driver = null;

	private String user = "";
	private String password = "";

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public JdbcUrl buildJdbcUrl() {
		JdbcUrl u = new JdbcUrl();
		u.setUrl(url);
		u.setDriver(driver);
		u.setUser(user);
		u.setPassword(password);
		return u;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public DriverConfig getDriver() {
		return driver;
	}

	public void setDriver(DriverConfig driver) {
		this.driver = driver;
	}
}
